<%-- 
    Document   : cadastro
    Created on : 29/06/2012, 16:15:34
    Author     : Rodrigo
--%>

<%@page import="model.Usuario"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/styleTeste.css" type="text/css" >
    </head>
    <body>
        <div class="all">
            -
            <div class="content">

                <div class="banner">  
                    <a href="index.jsp">
                        <img border="0" src="imgs/banner.png" />
                    </a>
                </div>

                <div class="separator">
                </div>

                <div class="senha">
                    <form action="recuperarSenhaServlet" method="post">
                        <h3> Digite seu e-mail </h3>
                        <div >
                            <input class="textinput" type="text" name="email" size="47"/>
                            <div style="width: 300px;">
                                <a href="index.jsp" >
                                    <div class="buttonvoltar" style="float:left; width: 100px;"></div>
                                </a>

                                <div style="float: right; width: 96px;">
                                    <button class="buttonenviar" type="submit" ></button>
                                </div>
                            </div>

                            <div>
                                <label class="text" style="clear: both; float: left; width: 700px;">
                                    <%
                                        String invalido = (String) session.getAttribute("recuperacaoInvalida");
                                        if (invalido != null) {
                                            if (invalido.equals("true")) {
                                                out.write((String) session.getAttribute("msgErro"));
                                            } else {
                                                out.write("<font color = green>Senha enviada com sucesso, por favor verifique seu email.</font>");
                                            }
                                        }
                                    %>
                                </label>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
        <% request.getSession().setAttribute("recuperacaoInvalida", null);%>
    </body>
</html>
